
package com.hundsun.yr.universal.library.base;

import android.app.Application;



/**
 * @Title: BaseApplication.java 
 * @Description: TODO(用一句话描述该文件做什么) 
 * @date 2015-11-2 下午2:26:04 
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com 
 * @replace author:
 * @replace date:
 * @version V1.0   
 */
public class BaseApplication extends Application {
	
	private static BaseApplication _context;
	
	public static BaseApplication getInstance() {
		return _context;
	}

    @Override
    public void onCreate() {
        super.onCreate();
        _context = this;
    }


    @Override
    public void onLowMemory() {
        android.os.Process.killProcess(android.os.Process.myPid());
        super.onLowMemory();
    }

    public void exitApp() {
    	
        BaseAppManager.getInstance().clear();
        System.gc();
        android.os.Process.killProcess(android.os.Process.myPid());
    }
    
}
